package com.wanmei.mapper;

import com.wanmei.pojo.User;
import com.wanmei.pojo.UserList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    User getUserByUserName(String username);

    int getUserNameByUserName(String username);

    int checkEmail(String email);

    List<User> selectAll();

    List<UserList> selectUserListAll();

    List<UserList> selectFuzzyAll(@Param("likeValue") String likeValue);

    List<UserList> selectCorrectAll(@Param("record") UserList record);

    UserList getUserListByuid(int uid);


    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    int insertSelective(User record);

    User selectByUid(Integer uid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int updatePwdByEmail(@Param("record") User record);

    int updateByUser(@Param("record") User record);

    int deleteUserByuid(int uid);

    User selectByUserName(String userName,String password);
}